package com.yjc.common.exception;

/**
 * @author yjc
 * @create 2022-09-26 12:31
 */
public class NotWareStockException extends RuntimeException {
    private Long skuId=1L;

    public NotWareStockException(Long skuId) {
        super("商品id:" + skuId + "；库存不足");
    }

    public NotWareStockException(String message) {
        super(message);
    }

    public NotWareStockException(String message, Throwable cause) {
        super(message, cause);
    }

    public NotWareStockException(Throwable cause) {
        super(cause);
    }

    protected NotWareStockException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
